﻿using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_other_type", PrimaryKey = "ID")]
    public class OtherType:BaseEntity
    {
        private int id;
        private string typeName;
        private int parentID;

        /// <summary>
        /// 备注
        /// </summary>
         [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return id; }
            set { this.ChangeNotify<int>("ID", value, ref id); }
        }
        /// <summary>
        /// 备注
        /// </summary>
         public string TypeName
        {
            get { return typeName; }
            set { this.ChangeNotify<string>("TypeName", value, ref typeName); }
        }
        /// <summary>
        /// 备注
        /// </summary>
         public int ParentID
        {
            get { return parentID; }
            set { this.ChangeNotify<int>("ParentID", value, ref parentID); }
        }

    }
}
